﻿namespace ExcelUnity.Exporter
{
    public interface IExcelExporter
    {
        /// <summary>
        /// 导出到文件
        /// </summary>
        /// <param name="data"></param>
        /// <param name="filePath"></param>
        void Export<T>(List<T> data, string filePath);

        /// <summary>
        /// 导出到文件流
        /// </summary>
        /// <param name="data"></param>
        /// <param name="stream"></param>
        void Export<T>(List<T> data, Stream stream);

        /// <summary>
        /// 导出返回字节数组
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        byte[] Export<T>(List<T> data);
    }
}